
#ifndef __RING_BUFFER_H__
#define __RING_BUFFER_H__

#include <stdint.h>
#include <stdbool.h>

#define ADC_BUFFER_SIZE         16
typedef struct {
  uint16_t data[ADC_BUFFER_SIZE];
  uint8_t index;
  bool full;
  bool update;
  uint32_t summ;
  uint16_t result;
} sADC_BUFFER;
  

#endif //__RING_BUFFER_H__
